<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的个人博客</title>
    <link rel="stylesheet" href="style.css">
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="nav-container">
            <h1 class="nav-logo">我的博客</h1>
            <ul class="nav-menu">
                <li><a href="#home" class="nav-link">首页</a></li>
                <li><a href="#about" class="nav-link">关于</a></li>
                <li><a href="#contact" class="nav-link">联系</a></li>
            </ul>
        </div>
    </nav>

    <!-- 主要内容区域 -->
    <main class="main-content">
        <!-- 首页文章列表 -->
        <section id="home" class="section active">
            <h2 class="section-title">最新文章</h2>
            <div class="articles-container">
                <article class="article-card" data-id="1">
                    <img src="https://picsum.photos/400/250?random=1" alt="文章配图" class="article-image">
                    <div class="article-content">
                        <h3 class="article-title">前端开发入门指南</h3>
                        <p class="article-excerpt">学习前端开发的基础知识和技能，从HTML、CSS到JavaScript...</p>
                        <div class="article-meta">
                            <span class="article-date">2024-01-15</span>
                            <span class="article-category">技术</span>
                        </div>
                    </div>
                </article>

                <article class="article-card" data-id="2">
                    <img src="https://picsum.photos/400/250?random=2" alt="文章配图" class="article-image">
                    <div class="article-content">
                        <h3 class="article-title">响应式设计最佳实践</h3>
                        <p class="article-excerpt">探讨如何创建在各种设备上都能完美显示的响应式网站...</p>
                        <div class="article-meta">
                            <span class="article-date">2024-01-10</span>
                            <span class="article-category">设计</span>
                        </div>
                    </div>
                </article>

                <article class="article-card" data-id="3">
                    <img src="https://picsum.photos/400/250?random=3" alt="文章配图" class="article-image">
                    <div class="article-content">
                        <h3 class="article-title">JavaScript ES6+ 新特性</h3>
                        <p class="article-excerpt">深入了解JavaScript ES6及后续版本带来的强大新功能...</p>
                        <div class="article-meta">
                            <span class="article-date">2024-01-05</span>
                            <span class="article-category">编程</span>
                        </div>
                    </div>
                </article>
            </div>
        </section>

        <!-- 文章详情页 -->
        <section id="article-detail" class="section">
            <button class="back-button" id="back-to-list">← 返回文章列表</button>
            <article class="article-detail">
                <h2 class="article-detail-title" id="detail-title"></h2>
                <div class="article-meta detail-meta">
                    <span class="article-date" id="detail-date"></span>
                    <span class="article-category" id="detail-category"></span>
                </div>
                <img src="" alt="" class="article-detail-image" id="detail-image">
                <div class="article-detail-content" id="detail-content">
                    <!-- 文章内容将通过JavaScript动态填充 -->
                </div>
            </article>
        </section>

        <!-- 关于页面 -->
        <section id="about" class="section">
            <h2 class="section-title">关于我</h2>
            <div class="about-content">
                <img src="https://picsum.photos/300/300?random=4" alt="个人头像" class="about-image">
                <div class="about-text">
                    <p>我是一名热爱技术的前端开发者，专注于创造优秀的用户体验。</p>
                    <p>在这个博客中，我分享关于前端开发、设计思考和编程技巧的内容。</p>
                </div>
            </div>
        </section>

        <!-- 联系页面 -->
        <section id="contact" class="section">
            <h2 class="section-title">联系我</h2>
            <form class="contact-form">
                <div class="form-group">
                    <label for="name">姓名</label>
                    <input type="text" id="name" name="name" required>
                </div>
                <div class="form-group">
                    <label for="email">邮箱</label>
                    <input type="email" id="email" name="email" required>
                </div>
                <div class="form-group">
                    <label for="message">留言</label>
                    <textarea id="message" name="message" rows="5" required></textarea>
                </div>
                <button type="submit" class="submit-button">发送消息</button>
            </form>
        </section>
    </main>

    <!-- 页脚 -->
    <footer class="footer">
        <div class="footer-content">
            <p>&copy; 2024 我的个人博客. 保留所有权利.</p>
        </div>
    </footer>

    <script src="script.js"></script>
</body>
</html>